﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XcoAppSpaces.Core;

namespace XcoAppSpaces.Discovery.Tests
{
	static class HelperExtensions
	{
		public static void StopCommunication(this XcoAppSpace space)
		{
			//stops all space transport services (for testing connection loss)
			foreach (var ts in space.Info.TransportServices)
				ts.Service.Stop();
		}
	}
}
